import request from '@/utils/request'

// 获取校园或车商列表及其关联的车辆
export function listWithVehicleApi(type) {
  return request.get(`/campusOrShop/listWithVehicle/${type}`)
}

// 根据id获取校园或车商的详情信息，及其关联的车辆的统计信息
export function getDescById(id) {
  return request.get(`/campusOrShop/getDesc/${id}`)
}

// 获取学校列表
export function getCampusListApi() {
  return request.get('/campusOrShop/getCampusList')
}

// 根据id获取校园或车商名
export function getNameApi(id) {
  return request.get(`/campusOrShop/getName/${id}`)
}
